home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / catD / SLEEP_LOCK.z / SLEEP_LOCK
Encoding:
Text File  |  2002-10-03  |  4.0 KB  |  66 lines

  1.  
  2.  
  3.  
  4. SSSSLLLLEEEEEEEEPPPP____LLLLOOOOCCCCKKKK((((DDDD3333))))                                                  SSSSLLLLEEEEEEEEPPPP____LLLLOOOOCCCCKKKK((((DDDD3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _SSSS_LLLL_EEEE_EEEE_PPPP______LLLL_OOOO_CCCC_KKKK - acquire a sleep lock
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_kkkk_ssss_yyyy_nnnn_cccc_hhhh_...._hhhh_>>>>
  13.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_yyyy_ssss_////_dddd_dddd_iiii_...._hhhh_>>>>
  14.      _vvvv_oooo_iiii_dddd _SSSS_LLLL_EEEE_EEEE_PPPP______LLLL_OOOO_CCCC_KKKK_((((_ssss_llll_eeee_eeee_pppp______tttt _****_l_o_c_k_p, int _p_r_i_o_r_i_t_y);
  15.  
  16.    AAAArrrrgggguuuummmmeeeennnnttttssss
  17.      _l_o_c_k_p     Pointer to the sleep lock to be acquired.
  18.  
  19.      _p_r_i_o_r_i_t_y  Reserved for future use (must be equal to -1).
  20.  
  21. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  22.      _SSSS_LLLL_EEEE_EEEE_PPPP______LLLL_OOOO_CCCC_KKKK acquires the sleep lock specified by _l_o_c_k_p.  If the lock is
  23.      not immediately available, the caller is put to sleep (the caller's
  24.      execution is suspended and other processes may be scheduled) until the
  25.      lock becomes available to the caller, at which point the caller wakes up
  26.      and returns with the lock held.
  27.  
  28.      The caller will not be interrupted by signals while sleeping inside
  29.      _SSSS_LLLL_EEEE_EEEE_PPPP______LLLL_OOOO_CCCC_KKKK.
  30.  
  31.    RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
  32.      None
  33.  
  34.    LLLLeeeevvvveeeellll
  35.      Base only.
  36.  
  37.    SSSSyyyynnnncccchhhhrrrroooonnnniiiizzzzaaaattttiiiioooonnnn CCCCoooonnnnssssttttrrrraaaaiiiinnnnttttssss
  38.      Can sleep.
  39.  
  40.      Driver-defined basic locks and read/write locks may not be held across
  41.      calls to this function.
  42.  
  43.      Driver-defined sleep locks may be held across calls to this function
  44.      subject to the recursion restrictions described below.
  45.  
  46.    WWWWaaaarrrrnnnniiiinnnnggggssss
  47.      Sleep locks are not recursive.  A call to _SSSS_LLLL_EEEE_EEEE_PPPP______LLLL_OOOO_CCCC_KKKK attempting to
  48.      acquire a lock that is currently held by the calling context will result
  49.      in deadlock.
  50.  
  51. RRRREEEEFFFFEEEERRRREEEENNNNCCCCEEEESSSS
  52.      _pppp_ssss_eeee_mmmm_aaaa(D3X), _SSSS_LLLL_EEEE_EEEE_PPPP______AAAA_LLLL_LLLL_OOOO_CCCC(D3), _SSSS_LLLL_EEEE_EEEE_PPPP______IIII_NNNN_IIII_TTTT(D3), _SSSS_LLLL_EEEE_EEEE_PPPP______DDDD_EEEE_AAAA_LLLL_LLLL_OOOO_CCCC(D3),
  53.      _SSSS_LLLL_EEEE_EEEE_PPPP______DDDD_EEEE_SSSS_TTTT_RRRR_OOOO_YYYY(D3), _SSSS_LLLL_EEEE_EEEE_PPPP______LLLL_OOOO_CCCC_KKKK______SSSS_IIII_GGGG(D3), _SSSS_LLLL_EEEE_EEEE_PPPP______LLLL_OOOO_CCCC_KKKK_AAAA_VVVV_AAAA_IIII_LLLL(D3),
  54.      _SSSS_LLLL_EEEE_EEEE_PPPP______TTTT_RRRR_YYYY_LLLL_OOOO_CCCC_KKKK(D3), _SSSS_LLLL_EEEE_EEEE_PPPP______UUUU_NNNN_LLLL_OOOO_CCCC_KKKK(D3)
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                         PPPPaaaaggggeeee 1111
  62.  
  63.  
  64.  
  65.